package com.example;

import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName Starter
 * @Description
 * @Author Yin
 * @Date 2021/4/12 13:46
 * @Version 1.0
 */
@SpringBootApplication
public class Starter {
    String myQueue = "test_queue";
    @Bean
    public Queue createQueueMsg(){
        return new Queue(myQueue,true);
    }

    public static void main(String[] args) {
        SpringApplication.run(Starter.class,args);
    }
}
